
Ext.ns("App");
Ext.ns("Ext.app");

Ext.util.Observable.observeClass(Ext.data.Connection);
Ext.data.Connection.on('requestcomplete', function(conn, resp,options ){
	if(resp.status!=200){
		alert('error:' + resp.statusText + " status:" + resp.status);
	}
});
Ext.app.MenuLoader = Ext.extend(Ext.ux.tree.XmlTreeLoader, {
			processAttributes : function(attr) {
				if (attr.tagName == 'Item') {
					attr.leaf = true;
				} else if (attr.tagName == 'Items') {
					attr.loaded = true;
					attr.expanded = true;
				}
			}
});
